package com.linciping.gradle.asm.transform

import com.android.build.gradle.AppExtension
import org.gradle.api.Plugin
import org.gradle.api.Project

class AsmTransformPlugin : Plugin<Project> {
    override fun apply(project: Project) {
        try {
            val appExtension = project.extensions.getByType(AppExtension::class.java)
            appExtension.registerTransform(AsmSampleTransform())
        } catch (ex: Exception) {
            println("project no app module")
        }
    }
}